package com.ymttest.database.sqlwapper.godmch;

import java.util.List;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.godmch.biz_config;
import com.ymttest.database.model.godmch.biz_configExample;
import com.ymttest.utils.EnvSetup;

public class biz_configWapper {
	SqlManager manage;
	public biz_configWapper() {
		manage = new SqlManager("mysqlgodmchdb" + EnvSetup.getEnv());
		 
	}
	
	public  List<biz_config> selectByExample(biz_configExample example) throws InterruptedException {
		List<biz_config> list = manage.getSelectResults("com.ymttest.database.mapping.godmch.biz_configMapper.selectByExample",example);
		manage.commit();
		return list;
	}
	
	public  biz_config selectByPrimaryKey(Integer agentType) throws InterruptedException {	
		biz_config model=new biz_config();
		List<biz_config> lst = manage.getSelectResults("com.ymttest.database.mapping.godmch.biz_configMapper.selectByPrimaryKey",agentType);
		if(lst.size()>0)
			 model=lst.get(0);
		manage.commit();
		return model;
	}
	
	
	public  Integer updateByPrimaryKey(biz_config record) throws InterruptedException {	

		Integer result= manage.update("com.ymttest.database.mapping.godmch.biz_configMapper.updateByPrimaryKey",record);

		manage.commit();
		return result;
	}
	
	public static void main(String args[]) {
	  
	}
}
